package mvp.com.bbc.rcjavaretrofitdaggermvp.model;

import io.reactivex.Observable;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.BaseApplication;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.apiUrl.ApiUrl;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.contact.ArtListContact;
import mvp.com.bbc.rcjavaretrofitdaggermvp.bean.CommunityListBean;

/**
 * Created by ${cbf} on 2017/12/3.
 */

public class ArtListModel implements ArtListContact.ArtListModel {
    @Override
    public Observable<CommunityListBean> artListModel(String themeid, String currentPage, String userid) {
        ApiUrl.ArtList list = BaseApplication.getRetrofit().create(ApiUrl.ArtList.class);
        Observable<CommunityListBean> observable = list.artList(themeid, currentPage, userid);
        return observable;
    }
}
